﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using MediaGarden.Models;
using MediaGarden.Pipeline;

using Orchard.Environment.Extensions;

namespace MediaGarden.Defaults
{
    public class DocumentLinkViewer : IMediaViewer
    {
        public string ViewerName
        {
            get { return "DocumentLink"; }
        }

        public string ViewerDescription
        {
            get { return "Document link"; }
        }

        public IEnumerable<string> SupportedMediaFormats()
        {
            return new[] { "Acrobat", "Csv", "Excel2007", "Excel", "OpenXPS", "Powerpoint2007", "Powerpoint", "RichText", "Text", "Word2007", "Word" };
        }

        public int ViewerPriority(MediaViewerContext context)
        {
            // This is the fallback so always use a zero priority
            return 1;
        }
    }
}